package com.ctshk.rpc.order.scenic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.order.scenic.entity.ScenicOrderTourist;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 门票订单旅客信息 Mapper 接口
 * </p>
 *
 * @author 张志朋
 * @since 2021-02-24
 */
public interface ScenicOrderTouristMapper extends BaseMapper<ScenicOrderTourist> {

    @Update("UPDATE t_scenic_order_tourist set tickets_product_id=null where order_id=#{orderId}")
    Integer updateTicketsByOrderid(@Param("orderId")Long orderId);
}
